function bitwiseNot() public view returns(uint) {

return ~a;

}

function bitwiseXOR() public view returns(uint) {

return a ^ b;

}

function bitwiseLeftShift() public view returns(uint) {

return a << b;

}

function bitwiseRightShift() public view returns(uint) {

return a >> b;

}

}

2.5.11.5 Assignment Operators

These operators are for the assignment of a value to a variable. The

operand on the left side is the variable, while operand on the right

side is the value. Solidity supports the following arithmetic operators,

as shown in Table 2.5, as follows:

OPERATOR

DENOTATION

DESCRIPTION

Simple

Assignment

=

Simply assigns the value on the right side to

the operand on the left side

Add

Assignment

+=

Adds the operand on the right side to the

operand on the left side and assigns the value

to the left operand

Subtract

Assignment

-=

Subtracts the operand on the right side from

the operand on the left side and assigns the

value to the left operand

Multiply

Assignment

*=

Multiplies both the operands and assigns the

value to the left operand

Divide

Assignment

/=

Divides the operand on the left side by the

operand on the right side and assigns the value

to the left operand